HADOOP-18718. Fix several maven build warnings#5592
Conversation
|
looks good. worried that a move to spotbugs may have surprises, but it is only in 1 module and that already has a spotbugs by the look of things |
|
Should be good, if the build doesn't complain. The findbug thing looks like a leftover to me. We don't run neither setup findbugs now in our jenkins job, we just run spotbugs |
|
Ya, I thought like that. Thank you, @steveloughran and @ayushtkn . |
|
💔 -1 overall
This message was automatically generated. |
|
Thank you, @ayushtkn . |
|
Lets wait for Steve, if he is convinced. @dongjoon-hyun would require a PR to branch-3, as well, this doesn't cherry-pick directly over there |
|
BTW, the current CI seems to complain for something. Let me check more while I'm here. |
steveloughran
left a comment
There was a problem hiding this comment.
lgtm. do also think that we need to make sure that all surefile/failsafe uses print stack traces
|
@dongjoon-hyun you marked this as draft, any further pointers, it was looking good enough to me atleast to merge |
|
Sorry for the delay, @ayushtkn . I converted it back. |
|
hey, carry on without me. I'm too distracted to review anything. |
hadoop-project-dist/pom.xml
Outdated
| <charset>${maven.compile.encoding}</charset> | ||
| <reportOutputDirectory>${project.build.directory}/site</reportOutputDirectory> | ||
| <destDir>${project.build.directory}/api</destDir> | ||
| <outputDirectory>${project.build.directory}/api</outputDirectory> |
There was a problem hiding this comment.
here both are defined
https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html
Is there any behaviour change here? Both have different default values as well
cc. @GauthamBanasandra I think you were around this area, does it look good to you?
There was a problem hiding this comment.
Shall we skip this line simply? I can revert two changes of this file to the original code.
There was a problem hiding this comment.
I would yes, lets not do it, similar change is there in pom.xml
So, we can go ahead without this destDir -> outputDirectory change
There was a problem hiding this comment.
Makes sense. Changing to outputDirectory would be redundant.
|
💔 -1 overall
This message was automatically generated. |
|
I updated the code and PR description by removing |
|
💔 -1 overall
This message was automatically generated. |
290f339 to
c5ef569
Compare
|
💔 -1 overall
This message was automatically generated. |
|
Thank you, @GauthamBanasandra . |
| <copy file="src/main/resources/hdfs-rbf-default.xml" todir="src/site/resources"/> | ||
| <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/> | ||
| </tasks> | ||
| </task> |
There was a problem hiding this comment.
Was supposed to use target, right?
From the description
Use target instead of tasks.
Other places you moved tasks -> target only. Any specific reason here?
There was a problem hiding this comment.
My bad. You are right. I fixed it.
|
💔 -1 overall
This message was automatically generated. |
|
Thank you so much, @ayushtkn , @steveloughran , @GauthamBanasandra . |
…y Dongjoon Hyun. Reviewed-by: Gautham B A <gautham.bangalore@gmail.com> Signed-off-by: Ayush Saxena <ayushsaxena@apache.org> (cherry picked from commit fb16e00) Conflicts: hadoop-tools/hadoop-federation-balance/pom.xml

Description of PR
This PR aims to fix the following build warnings which are a subset of the full warnings on Maven 3.9.1.
cyclonedx-maven-pluginversion is added.Use spotbugs-maven-plugin instead of findbugs-maven-plugin, removefindbug-maven-plugin.targetinstead oftasks.systemPropertyVariablesinstead ofsystemProperties.How was this patch tested?
Pass the CI and do the manual tests.
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?